package com.fancy.learncenter.bean;

/**
 * Created by shiweiwei on 2017/12/16.
 */

import android.os.Parcel;
import android.os.Parcelable;

public class QuestionVOsBean implements Parcelable{

    private String constructionNameCn;
    private String constructionNameEn;
    private CartoonAnswersBean answers;
    private CartoonOptionsBean options;
    private CartoonStemsBean stems;
    private String appPageKey;
    private long questionId;
    private String homeworkPackageId;
    private CartoonAnswerKeysBean answerKeys; //答案解析
    private String studentHomeworkDoneDetailId; //未订正的题目 做完题的id
    private int isChecked;
    public QuestionVOsBean() {
    }

    public String getStudentHomeworkDoneDetailId() {
        return studentHomeworkDoneDetailId;
    }

    public void setStudentHomeworkDoneDetailId(String studentHomeworkDoneDetailId) {
        this.studentHomeworkDoneDetailId = studentHomeworkDoneDetailId;
    }

    public int getIsChecked() {
        return isChecked;
    }

    public void setIsChecked(int isChecked) {
        this.isChecked = isChecked;
    }

    public CartoonAnswerKeysBean getAnswerKeys() {
        return answerKeys;
    }

    public void setAnswerKeys(CartoonAnswerKeysBean answerKeys) {
        this.answerKeys = answerKeys;
    }

    protected QuestionVOsBean(Parcel in) {
        constructionNameCn = in.readString();
        constructionNameEn = in.readString();
        answers = in.readParcelable(CartoonAnswersBean.class.getClassLoader());
        options = in.readParcelable(CartoonOptionsBean.class.getClassLoader());
        stems = in.readParcelable(CartoonStemsBean.class.getClassLoader());
        answerKeys = in.readParcelable(CartoonAnswerKeysBean.class.getClassLoader());
        appPageKey = in.readString();
        questionId = in.readLong();
        homeworkPackageId = in.readString();
        studentHomeworkDoneDetailId = in.readString();
        isChecked = in.readInt();
    }

    public static final Creator<QuestionVOsBean> CREATOR = new Creator<QuestionVOsBean>() {
        @Override
        public QuestionVOsBean createFromParcel(Parcel in) {
            return new QuestionVOsBean(in);
        }

        @Override
        public QuestionVOsBean[] newArray(int size) {
            return new QuestionVOsBean[size];
        }
    };

    public String getHomeworkPackageId() {
        return homeworkPackageId;
    }

    public void setHomeworkPackageId(String homeworkPackageId) {
        this.homeworkPackageId = homeworkPackageId;
    }

    public long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(long questionId) {
        this.questionId = questionId;
    }

    public String getAppPageKey() {
        return appPageKey;
    }

    public void setAppPageKey(String appPageKey) {
        this.appPageKey = appPageKey;
    }

    public CartoonAnswersBean getAnswers() {
        return answers;
    }

    public void setAnswers(CartoonAnswersBean answers) {
        this.answers = answers;
    }


    public String getConstructionNameCn() {
        return constructionNameCn;
    }

    public void setConstructionNameCn(String constructionNameCn) {
        this.constructionNameCn = constructionNameCn;
    }

    public String getConstructionNameEn() {
        return constructionNameEn;
    }

    public void setConstructionNameEn(String constructionNameEn) {
        this.constructionNameEn = constructionNameEn;
    }

    public CartoonOptionsBean getOptions() {
        return options;
    }

    public void setOptions(CartoonOptionsBean options) {
        this.options = options;
    }

    public CartoonStemsBean getStems() {
        return stems;
    }

    public void setStems(CartoonStemsBean stems) {
        this.stems = stems;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(constructionNameCn);
        dest.writeString(constructionNameEn);
        dest.writeParcelable(answers, flags);
        dest.writeParcelable(options, flags);
        dest.writeParcelable(stems, flags);
        dest.writeParcelable(answerKeys,flags);
        dest.writeString(appPageKey);
        dest.writeLong(questionId);
        dest.writeString(homeworkPackageId);
        dest.writeString(studentHomeworkDoneDetailId);
        dest.writeInt(isChecked);
    }
}